Skip to content

feat: add startup optimization deep-dive & Qwen Code improvement report#34

Merged
wenshao merged 9 commits intomainfrom
feat/startup-optimization-qwen-improvement
Apr 3, 2026
Merged

feat: add startup optimization deep-dive & Qwen Code improvement report#34
wenshao merged 9 commits intomainfrom
feat/startup-optimization-qwen-improvement

Conversation

@wenshao
Copy link
Copy Markdown
Owner

@wenshao wenshao commented Apr 3, 2026

新增文档

1. startup-optimization-deep-dive.md

  • Claude Code API Preconnect(71 行):fire-and-forget HEAD 请求预热 TCP+TLS 连接
  • Claude Code Early Input Capture(191 行):启动期间 raw mode 捕获键盘输入
  • Qwen Code 现状对比 + 实现方案建议(~160 行代码)
  • 收益评估:首次 API 延迟改善 ~150ms

2. qwen-code-improvement-report.md

  • 基于 56 个 Claude Code 模块的系统性对比
  • 18 项改进建议,按 P0-P3 优先级排序
  • Top 5 改进点详细说明(含源码路径)

审计

  • 4 轮审计(技术准确性、逻辑一致性、反向审计、格式规范)
  • 修复 13 个问题(行数修正、行号校准、代码准确性验证)

wenshao and others added 2 commits April 4, 2026 03:20
…rence and relative paths

- Remove 'leaked' reference in qwen-code-improvement-report.md
- Fix 14 relative paths from '../claude-code-leaked/' to 'claude-code/'
- Add English annotations to technical terms across 10 comparison docs
  (Speculation, Context Compression, Subagent, Telemetry, etc.)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…-code-improvement-report.md

- Add local source paths section (claude-code-leaked + qwen-code)
- Convert 14 Claude Code source refs to clickable links
- Convert 7 Qwen Code source refs to clickable links

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@wenshao wenshao force-pushed the feat/startup-optimization-qwen-improvement branch from 71d04ad to 2b20bde Compare April 3, 2026 19:20
- Replace external source code links with internal article links
- Convert 21 external file links to internal documentation links
- Add related article references for all 5 Top 5 improvement sections
- Use '源码:' format for source code references instead of clickable links

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1. reactiveCompact.ts does NOT exist — changed to apiMicrocompact.ts
2. Qwen Code speculation is complete in v0.15.0 (563 lines + overlayFs +
   speculationToolGate), only default-disabled — updated description,
   matrix row, summary table, and suggestions
3. Claude Code speculation.ts: 992 → 991 lines

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the comparison documentation set to add/standardize bilingual terminology (e.g., Telemetry/Model Routing/Sampling/Escape Sequence) and refine the Qwen Code improvement report and startup optimization deep-dive content.

Changes:

  • Standardize key terms across multiple comparison docs by adding English term annotations in headings and key sentences.
  • Refine qwen-code-improvement-report.md with updated comparisons, links to related articles, and updated speculation system assessment.
  • Minor clarity tweaks in diagrams/wording in startup optimization and other deep-dive docs.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/comparison/telemetry-privacy-deep-dive.md Adds “Telemetry” term annotations to title/intro.
docs/comparison/telemetry-architecture-deep-dive.md Adds bilingual terms (Telemetry/Sampling/Fallback) and clarifies sampling section label.
docs/comparison/startup-optimization-deep-dive.md Adds bilingual annotations (Raw Mode/Escape Sequence/Rendering/Preconnect) in early-input and startup flow sections.
docs/comparison/qwen-code-improvement-report.md Updates terminology, adds local source-reference note, refines the improvement matrix and related-links sections.
docs/comparison/privacy-telemetry.md Adds “Telemetry” term annotations to section titles.
docs/comparison/model-routing.md Adds “Model Routing/Telemetry/Plugin/Subagent” term annotations and section header clarifications.
docs/comparison/loop-schedule.md Adds bilingual annotations (Daemon/Token/Bridge) to scheduling comparison and explanation.
docs/comparison/input-queue-deep-dive.md Adds bilingual annotations (Early Input Capture/Raw Mode/Escape Sequence/Rendering) in Early Input and queue visualization sections.
docs/comparison/context-compression-deep-dive.md Adds “Context Compression/Memory/Subagent” annotations in headings and key explanations.
docs/comparison/claude-code-vs-cursor.md Adds bilingual annotations (Hook/Plugin/Sandbox) in extensibility/security sections.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Changed `../claude-code-leaked/` → `../claude-code/`(源码快照)in the
source path hint to avoid inconsistency with "源码分析" description.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Major additions to qwen-code-improvement-report.md:

1. New P0 item: Mid-Turn Queue Drain (PR QwenLM/qwen-code#2854 open)
2. Upgraded P2→P1: Tool parallelism with Kind-based batching
   (PR QwenLM/qwen-code#2864 open)
3. New P1 items: startup optimization, CLAUDE.md conditional rules
4. New P2 items: shell security, MDM enterprise, API token counting
5. Added Fork Subagent deep-dive cross-reference link
6. Expanded summary table from 10→16 dimensions with "进展" column
   tracking Qwen Code PR status
7. Fixed forkSubagent.ts line count 211→210

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Reduced matrix from 7 columns to 5 (优先级/改进点/现状/难度/进展)
  to eliminate GitHub horizontal scrollbar
- Added section 五 with 12 deep-dive cross-reference links
- Tracked Qwen Code PR status: #2854 (mid-turn drain), #2864 (parallelism),
  #2525 (speculation, merged)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- compact.ts: 1706→1705
- AgentTool.tsx: 1398→1397
- runAgent.ts: 974→973
- autoDream.ts: 325→324
- Fix anchor: #相关-deep-dive-文章 → #五相关-deep-dive-文章

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wenshao wenshao requested a review from Copilot April 3, 2026 21:28
@wenshao wenshao merged commit a4f5047 into main Apr 3, 2026
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- 无法 fork 当前会话上下文,无法继承对话历史

**相关文章**:
- [Fork 子代理 Deep-Dive](./fork-subagent-deep-dive.md)
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link points to ./fork-subagent-deep-dive.md, but that file does not exist in docs/comparison/ (broken relative link). Please either add the referenced Deep-Dive document or update the link to the correct existing file path.

Suggested change
- [Fork 子代理 Deep-Dive](./fork-subagent-deep-dive.md)
- Fork 子代理 Deep-Dive(文档待补充)

Copilot uses AI. Check for mistakes.
| Mid-Turn Queue Drain | [输入队列与中断机制](./input-queue-deep-dive.md) |
| 上下文压缩 | [上下文压缩算法](./context-compression-deep-dive.md) |
| Fork 子代理 | [Fork 子代理](./fork-subagent-deep-dive.md) |
| 智能工具并行 | [工具并行执行](./tool-parallelism-deep-dive.md) |
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table references ./fork-subagent-deep-dive.md, but the file is missing from docs/comparison/, so the link will be broken for readers. Add the document or change the link target to an existing page.

Suggested change
| 智能工具并行 | [工具并行执行](./tool-parallelism-deep-dive.md) |
| 智能工具并行 | 工具并行执行 |

Copilot uses AI. Check for mistakes.
wenshao added a commit that referenced this pull request Apr 5, 2026
Closed PR #72 (qwen3.6-plus) — 22 of 26 items duplicated existing 183.
Extracted 4 new items to p2-tools:
- #31 /plan (plan mode)
- #32 /rename (session rename)
- #33 /upgrade (version upgrade + changelog)
- #34 Plugin system (aggregated container for commands+skills+hooks+MCP)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao added a commit that referenced this pull request Apr 5, 2026
PR #102: 3/5 duplicated, 2 new (useTaskListWatcher, useDirectConnect).
PR #104: 4/5 duplicated with PR #101, 1 new (useAssistantHistory).

New P3 items: #32-#34. Total: 217 items.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants